package cheme.ProcessModel.Cmds;

import cheme.ProcessModel.ProcessModel;

public class CreateSourceSinkCmd extends CreateStreamCmd
{
	ProcessModel processModel;
	
	public CreateSourceSinkCmd(CreateStreamCmd src)
	{
		super(src);
	}

	public ProcessModel getProcessModel()
	{
		return processModel;
	}

	public void setProcessModel(ProcessModel processModel)
	{
		this.processModel = processModel;
	}

	@Override
	public void execute()
	{
		processModel.add(sink);
		
		super.execute();
	}
}
